package top.mcwebsite.playandroid.business.qa

import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import top.mcwebsite.playandroid.business.articles.api.model.ArticleModel
import top.mcwebsite.playandroid.business.qa.api.IQAService
import top.mcwebsite.playandroid.business.qa.model.QAReplayComment
import top.mcwebsite.playandroid.business.qa.ui.AnswerPage
import top.mcwebsite.playandroid.business.qa.ui.QADetailPage
import top.mcwebsite.playandroid.lib.servicemanager.core.annoation.ServiceImpl
import top.mcwebsite.playandroid.business.qa.ui.QAPage as QAContent

@ServiceImpl(IQAService::class, isSingleton = true)
class QAServiceImpl : IQAService {

    @Composable
    override fun QAPageContent(navController: NavController) {
        QAContent()
    }

    @Composable
    override fun QADetailPageContent(qaId: Long, articleModel: ArticleModel, navController: NavController) {
        QADetailPage(qaId, articleModel)
    }

    @Composable
    override fun AnswerPageContent(
        navController: NavController,
        question: String,
        replyCommands: List<QAReplayComment>,
        index: Int
    ) {

    }
}